sunxi: spl: Detect at runtime where SPL was read from
authorDaniel Kochmański <[email protected]>
Fri, 29 May 2015 14:55:42 +0000 (16:55 +0200)
committerHans de Goede <[email protected]>
Fri, 24 Jul 2015 14:17:08 +0000 (16:17 +0200)
commita151403fd2da05a6f05d1f0e16ff7b8986a73823
tree3bfc03e35faf16e0a526efe1cd8868434248a898
parent645c48f50eab307a9879a82c4d066e74114ec78a
sunxi: spl: Detect at runtime where SPL was read from

Make possible using a single `u-boot-sunxi-with-spl.bin` binary for both NAND
memory and SD card. Detection where SPL was read from is implemented in
`spl_boot_device`.

Signed-off-by: Daniel Kochmański <[email protected]>
CC: Roy Spliet <[email protected]>
Cc: Ian Campbell <[email protected]>
[[email protected]: Some small coding style fixes]
Acked-by: Hans De Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
arch/arm/cpu/armv7/sunxi/board.c